package com.xunfang.springboot07redis.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@NoArgsConstructor
public class Book implements Serializable {
    private Integer id;  //编号
    private String title;  //书名
    private Double price;  //价格
    private String publisher;  //出版社
    private LocalDate publishDate;  //出版日期
    private String author;  //作者

    public Book(Integer id, String title, Double price, String publisher, LocalDate publishDate, String author) {
        this.id = id;
        this.title = title;
        this.price = price;
        this.publisher = publisher;
        this.publishDate = publishDate;
        this.author = author;
    }
}